//
//  UILabel+Extension.m
//  xindailianmeng
//
//  Created by 张东 on 2017/2/6.
//  Copyright © 2017年 xindailianmeng.cn. All rights reserved.
//

#import "UILabel+Extension.h"

@implementation UILabel (Extension)

+ (instancetype)lableWithText: (NSString *)text textColor: (UIColor *)color textFont: (NSInteger)font textAlignment: (NSTextAlignment)textAlignment point:(CGPoint)point width:(CGFloat)width{
    UILabel *lb = [[UILabel alloc] init];
    lb.text = text;
    lb.textColor = color;
    lb.font = kBaseFont_(font);
    [lb sizeToFit];
    lb.textAlignment = textAlignment;
    lb.frame = CGRectMake(point.x, point.y, width, lb.frame.size.height);
    return lb;
}

@end
